package io.renren.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.dao.DataContractDao;
import io.renren.entity.DataContractEntity;
import io.renren.service.DataContractService;



@Service("dataContractService")
public class DataContractServiceImpl implements DataContractService {
	@Autowired
	private DataContractDao dataContractDao;
	
	@Override
	public DataContractEntity queryObject(String id){
		return dataContractDao.queryObject(id);
	}
	
	@Override
	public List<DataContractEntity> queryList(Map<String, Object> map){
		return dataContractDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return dataContractDao.queryTotal(map);
	}
	
	@Override
	public void save(DataContractEntity dataContract){
		dataContractDao.save(dataContract);
	}
	
	@Override
	public void update(DataContractEntity dataContract){
		dataContractDao.update(dataContract);
	}
	
	@Override
	public void delete(String id){
		dataContractDao.delete(id);
	}
	
	@Override
	public void deleteBatch(String[] ids){
		dataContractDao.deleteBatch(ids);
	}
	
}
